import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:flutter_yy/home/provider/home_page_provider.dart';

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {

  HomePageProvider provider = HomePageProvider();

  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider(
      builder: (_) => provider,
      child: Scaffold(
      appBar: AppBar(
        title: Text('首页'),
        elevation: 0.5,
      ),
      body: Container(
        color: Colors.white,
        child: Center(
          child: Text('第一页'),
        ),
       ),
      ) 
    );
  }
}